<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>计算阶乘</title>
	<script>
		/*
			计算5阶乘
			5! = 1x2x3x4x5;//120
			89! = 1x2x3....x89;
		 */
		var total = 1;
		for(var i=2;i<=10;i++){
			total = total*i;
		}

		console.log(total);
	</script>
</head>
<body>
	
</body>
</html>